WooCommerce\Square\Gateway D

Total Complexity 155
Dependencies 22
Dependents 6
Total lines 1,380
Lines of code 619
Logical lines of code 313
Comment lines 484
Methods 46
Properties 5

Methods 46

Method Rating Maintainability Complexity Lines of code
restore_refunded_inventory()
A
45 14 38
get_order()
A
45 10 39
init_form_fields()
A
40 8 63
get_order_for_refund()
A
49 9 27
enqueue_gateway_assets()
A
56 9 15
do_transaction()
S
51 6 27
validate_fields()
S
53 6 22
get_token_by_id()
S
57 6 15
store_new_order_item_square_meta()
S
58 5 16
get_order_meta()
S
64 6 9
get_order_amount()
S
57 5 15
is_digital_wallet_available()
S
60 5 11
add_digital_wallets_form_fields()
S
42 1 62
add_card_types_form_fields()
S
61 4 12
get_payment_method_image_url()
S
61 4 11
maybe_save_gift_card_order_details()
S
57 3 17
add_payment_gateway_transaction_data()
S
64 4 10
wc_ajax_square_checkout_validate()
S
61 3 13
get_order_with_unique_transaction_ref()
S
61 3 12
__construct()
S
46 1 41
log_js_data()
S
64 3 8
is_available()
S
78 3 3
enqueue_payment_form_assets()
S
71 3 6
filter_available_gateways()
S
65 3 10
get_order_for_add_payment_method()
S
68 3 7
add_gift_cards_form_fields()
S
59 1 15
get_guest_customer_id()
S
69 2 7
filter_no_payment_gatways_message()
S
71 2 6
wc_ajax_square_checkout_handler()
S
66 2 7
get_payment_form_instance()
S
71 2 6
get_api()
S
68 2 7
add_tokenization_form_fields()
S
66 2 8
get_application_id()
S
68 2 7
mark_order_as_refunded()
S
75 1 4
get_order_for_capture()
S
70 1 6
add_csc_form_fields()
S
82 1 3
get_environment()
S
81 1 3
get_customer_id()
S
75 1 4
get_authorization_time_window()
S
82 1 3
build_payment_tokens_handler()
S
80 1 3
is_3d_secure_enabled()
S
69 1 6
tokenize_before_sale()
S
82 1 3
csc_enabled()
S
82 1 3
get_gift_card_handler()
S
82 1 3
get_digital_wallet_handler()
S
82 1 3
get_method_form_fields()
S
82 1 3